﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using Model_Layer;

namespace Data_Access_Layer
{
    public interface IDBFlight
    {
        //Pre:  At search with input has been started.
        //Post: A list of Flight results from the search are fetched from the database.
        //List<Flight> searchFlights();

        //Pre:  A Specific flight is selected.
        //Post: The flight is fetched from the database.
        //With SingleWhere
        Flight getSelectedFlight(int idflight, bool retrieveAssociation);

        //Pre:  Button for all flights has been clicked.
        //Post: List of all flights is fetched from the database.
        //With MichWhere
        //List<Flight> getAllFlights(bool retriveAssociation);

        List<Flight> GetAllFlights(bool retrieveAssociation);

        List<Flight> GetCriteriaFlights(string wClause, bool retrieveAssociation);
    }
}
